package com.zbkj.common.model.agent;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 小区分佣设置表
 * </p>
 *
 * @author Caiyc
 * @since 2025-07-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_community_brokerage")
@ApiModel(value="CommunityBrokerage对象", description="小区分佣设置表")
public class CommunityBrokerage implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "所在小区")
    private String community;

    @ApiModelProperty(value = "创建人ID")
    private Integer systemAdminId;

    @ApiModelProperty(value = "排名分佣比例内容(格式：1:50,2:30,3:20)")
    private String rankingScale;

    @ApiModelProperty(value = "团长分佣比例")
    private BigDecimal adminScale;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "是否能选择")
    private Boolean isCanSelect;

    @ApiModelProperty(value = "区域设置ID（eb_brand_agent_region）")
    private Integer agentRegionId;

    @ApiModelProperty(value = "品牌商ID（对应SystemAdmin表ID）")
    private Integer brandId;

    @ApiModelProperty(value = "利润比（%）")
    private BigDecimal scale;

    @ApiModelProperty(value = "奖励份额（取多少个名次）")
    private Integer prizeNum;

    @ApiModelProperty(value = "统计周期(0:天，1：周，2：月，99：选择时间)")
    private Integer cycle;

    @ApiModelProperty(value = "周期开始时间")
    private Date startTime;

    @ApiModelProperty(value = "周期结束时间")
    private Date endTime;

    @ApiModelProperty(value = "是否删除")
    private Boolean isDel;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "状态（0：关闭，1：开启）")
    private Integer status;

    @ApiModelProperty(value = "商户id,0-平台")
    private Integer merId;

    @ApiModelProperty(value = "平台分给商户的利润比（%）")
    private BigDecimal brokerageScale;

    @ApiModelProperty(value = "类型（0：代理给商户的设置，1：商户自己设置）")
    private Integer type;

    @ApiModelProperty(value = "分类分佣比例明细（格式：1:90.5,2:30）")
    private String categoryItems;

    @ApiModelProperty(value = "自动续期(0:否，1：是)")
    private Boolean autoRenew;

    @ApiModelProperty(value = "分红发放时间")
    private Date settlementTime;

    @ApiModelProperty(value = "是否已发放")
    private Boolean isSettlement;
}
